<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@page import="com.tjsinfo.tjsoa.oldOADocument.fawen.vo.FaWenInfo"%>
<%@page import="com.tjsinfo.tjsoa.oldOADocument.fawen.vo.FuJianFile"%>
<%@page import="java.net.URLEncoder" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
FaWenInfo fawenNeirong = (FaWenInfo)request.getAttribute("fawenNeirong");
Long  taskid = (Long)request.getAttribute("taskid"); 
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
	<meta http-equiv="x-ua-compatible" content="ie=7" />
	<base href="<%=basePath%>"/>
    
    <title>查看</title>

	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />  
<link href="<%=basePath%>style/red.css" rel="stylesheet" type="text/css" />  
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
      <script type="text/javascript">
		function init(){
		 	var url = "<%=basePath%>oldOA/fawen/opendoc.jsp?docname=<%=fawenNeirong.getFilepath()%>&WorkMode=3";
			with(document.all)
			{
			srctext.src = url;
			} 
		}
		$(function(){
			$("#gwlz_title a").get(0).href="javascript:change(1)";
			$("#gwlz_title a").get(1).href="javascript:change(2)";
		});
		
		function change(start){
			if(start == 1)
			{
				$("#li1").addClass("over");
				$("#li2").removeClass();
				$("#span1").show();
				$("#span2").hide();
			}
			else if(start == 2)
			{
				$("#li2").addClass("over");
				$("#li1").removeClass();
				$("#span2").show();
				$("#span1").hide();
			}
			
		}
	</script>	
  </head>
  
  <body onload="init()">
   <div id="rightindex" style="height: 97%">
   <div id="tabtj"> 
      <!--导航开始处-->
      <div id="ttt">
        <div id="gwlz_title">
            <ul>
                <li class="over" id="li1"><a href="#"><span>正文</span></a></li>
                <li id="li2"><a href="#"><span>附件</span></a></li>
            </ul>
        </div>
        <div style="overflow-y:scroll; height:96%">
        <div class="swcbdtab" id="span1" >
         <table width="97%" border="0" cellpadding="0" cellspacing="0">
         </table>
       	
        <iframe id="srctext" width="100%" height="650px" frameborder=yes HTTP-EQUIV="Content-Type"  wrap="virtual"></iframe>
        </div>
        <div class="swcbdtab" style="display: none;" id="span2">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
              <tr>
                <td align="center">
                    <table width="564" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/tjfj01.gif" /></td>
                      </tr>
                      <tr>
                        <td><div class="tjfjcontent">
                                <table width="80%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                                     
        						<%
                                		Iterator iterator = fawenNeirong.getFawenFujians().iterator();
                                		while(iterator.hasNext())
                                		{
                                			FuJianFile fawenFujian = (FuJianFile)iterator.next();
                                			String encodefilename =  URLEncoder.encode(URLEncoder.encode(fawenFujian.getFileName(),"utf-8"),"utf-8");
                                	%>
                                		<tr><td><a href="<%=basePath %>tjsinfo/tjsoa/oldoa/fawendownloadfujian.do?alias=<%=fawenFujian.getAlias() %>&filename=<%=encodefilename %>"><%=fawenFujian.getFileName() %></a></td></tr>
                                	<% 		
                                		}
                                	%>
        				         
                                </table>
                            </div></td>
                      </tr>
                      <tr>
                        <td><img src="images/tjfj03.gif" /></td>
                      </tr>
                    </table>
                </td>
              </tr>
          </table>
        	
        	
        </div>



   	  </div>
   	  </div> 
   </div>
</div>
	  
  </body>
</html>
